* {
  margin: 0;
  padding: 0;
}

/* 大背景 */
/* 默认状态HTML和body的高度是0，所以导致cover缩放背景图不成功 */
html {
  height: 100%;
}

body {
  height: 100%;
  background: url(../images/f1_1.jpg) no-repeat center 0 / cover;
}

/* 云 */
.cloud img {
  position: absolute;
  left: 50%;
}

/* 修改云中的第一张img的样式 */
.cloud img:nth-child(1) {
  /* 向左移动200px 向下移动20px */
  /* transform: translate(-250px, 20px); */
  margin-left: -200px;
  margin-top: 20px;
  animation: cloud 1.5s 0.2s infinite alternate linear;
}

.cloud img:nth-child(2) {
  /* transform: translate(350px, 100px); */
  margin-left: 350px;
  margin-top: 100px;
  animation: cloud 1.5s 0.6s infinite alternate linear;

}

.cloud img:nth-child(3) {
  /* transform: translate(-600px, 200px); */
  margin-left: -600px;
  margin-top: 200px;
  animation: cloud 1.5s 1s infinite alternate linear;

}

@keyframes cloud {
  100% {
    transform: translate(30px);
  } 
}

/* 热气球 */
.ballon {
  position: absolute;
  top: 20%;
  left: 50%;
  margin-left: -390px;
  animation: ballon 1s infinite alternate linear;
}

@keyframes ballon {
  100% {
    transform: translateY(20px);
  }
}

/* 长颈鹿 */
.giraffe {
  position: absolute;
  top: 15%;
  left: 50%;
  margin-left: 160px;
}


/* 文字 */
.text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: text 2s;
}


/* 默认 → 小 → 大 → 小 → 默认 */
@keyframes text {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  20% {
    transform: translate(-50%, -50%) scale(0.1);
  }
  40% {
    transform: translate(-50%, -50%) scale(1.4);
  }
  70% {
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* 跳动文字 */
.jump-text img {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: 100px;
}

.jump-text img:nth-child(1) {
  margin-left: -390px;
  animation: jump-text 1s 0.2s infinite alternate linear;
}

.jump-text img:nth-child(2) {
  margin-left: -180px;
  animation: jump-text 1s 0.4s infinite alternate linear;
}

.jump-text img:nth-child(3) {
  margin-left: 35px;
  animation: jump-text 1s 0.6s infinite alternate linear;
}

.jump-text img:nth-child(4) {
  margin-left: 240px;
  animation: jump-text 1s 0.8s infinite alternate linear;
}

@keyframes jump-text {
  100% {
    transform: translateY(-40px);
  }
}
